import request from '@/utils/request'

// 查询房产资料列表
export function listHouseInfo(query) {
  return request({
    url: '/house_sale/salesguide/list',
    method: 'get',
    params: query
  })
}

// 查询项目信息列表
export function listProjectInfo() {
  return request({
    url: '/house_sale/salesguide/projectList',
    method: 'get'
  })
}

// 查询楼栋资料列表
export function listTerminfo(query) {
  return request({
    url: '/house_sale/salesguide/termList',
    method: 'get',
    params: query
 })
}

// 初始化
export function init() {
  return request({
    url: '/house_sale/salesguide/init',
    method: 'get'
 })
}

// 查询房产资料详细
export function getHouseInfo(hourseid) {
  return request({
    url: '/house_sale/salesguide/' + hourseid,
    method: 'get'
  })
}

// 获取销售状态列表
export function getSaleStates() {
  return request({
    url: '/house_sale/salesguide/saleStateList',
    method: 'get'
  })
}

// 修改销售状态
export function updateSaleState(houseinfo) {
  return request({
    url: '/house_sale/salesguide/updateSaleState',
    method: 'post',
    params: houseinfo
  })
}

// 查询购房流程列表
export function workProcessList(houseinfo) {
  return request({
    url: '/house_sale/salesguide/workProcessList',
    method: 'post',
    params: houseinfo
  })
}

// 查询房产事件列表
export function houseEventList(houseinfo) {
  return request({
    url: '/house_sale/salesguide/houseEventList',
    method: 'post',
    params: houseinfo
  })
}
